package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_findEntityByPrimaryKeyColumns implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_findEntityByPrimaryKeyColumns() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_java_format_1_1 = new TagInfo("java:format", //$NON-NLS-1$
            1, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_iterate_2_2 = new TagInfo("c:iterate", //$NON-NLS-1$
            2, 2,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/primaryKeys/column", //$NON-NLS-1$
                "primaryKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_10 = new TagInfo("c:get", //$NON-NLS-1$
            3, 10,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_65 = new TagInfo("c:get", //$NON-NLS-1$
            3, 65,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_117 = new TagInfo("c:get", //$NON-NLS-1$
            3, 117,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_170 = new TagInfo("c:get", //$NON-NLS-1$
            3, 170,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "($primaryKey/@javaType)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_212 = new TagInfo("c:get", //$NON-NLS-1$
            3, 212,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_import_3_273 = new TagInfo("java:import", //$NON-NLS-1$
            3, 273,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_5_10 = new TagInfo("c:get", //$NON-NLS-1$
            5, 10,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_65 = new TagInfo("c:get", //$NON-NLS-1$
            5, 65,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_117 = new TagInfo("c:get", //$NON-NLS-1$
            5, 117,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_170 = new TagInfo("c:get", //$NON-NLS-1$
            5, 170,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "($primaryKey/@javaType)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_212 = new TagInfo("c:get", //$NON-NLS-1$
            5, 212,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_import_5_303 = new TagInfo("java:import", //$NON-NLS-1$
            5, 303,
            new String[] {
            },
            new String[] {
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        RuntimeTagElement _jettag_java_format_1_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_1_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_1_1.setRuntimeParent(null);
        _jettag_java_format_1_1.setTagInfo(_td_java_format_1_1);
        _jettag_java_format_1_1.doStart(context, out);
        JET2Writer _jettag_java_format_1_1_saved_out = out;
        while (_jettag_java_format_1_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            RuntimeTagElement _jettag_c_iterate_2_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_2_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_2_2.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_2_2.setTagInfo(_td_c_iterate_2_2);
            _jettag_c_iterate_2_2.doStart(context, out);
            while (_jettag_c_iterate_2_2.okToProcessBody()) {
                out.write("\t\tpublic ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_3_10 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_10); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_3_10.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_c_get_3_10.setTagInfo(_td_c_get_3_10);
                _jettag_c_get_3_10.doStart(context, out);
                _jettag_c_get_3_10.doEnd();
                out.write(" find");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_3_65 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_65); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_3_65.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_c_get_3_65.setTagInfo(_td_c_get_3_65);
                _jettag_c_get_3_65.doStart(context, out);
                _jettag_c_get_3_65.doEnd();
                out.write("By");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_3_117 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_117); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_3_117.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_c_get_3_117.setTagInfo(_td_c_get_3_117);
                _jettag_c_get_3_117.doStart(context, out);
                _jettag_c_get_3_117.doEnd();
                out.write("(");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_3_170 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_170); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_3_170.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_c_get_3_170.setTagInfo(_td_c_get_3_170);
                _jettag_c_get_3_170.doStart(context, out);
                _jettag_c_get_3_170.doEnd();
                out.write(" ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_3_212 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_212); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_3_212.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_c_get_3_212.setTagInfo(_td_c_get_3_212);
                _jettag_c_get_3_212.doStart(context, out);
                _jettag_c_get_3_212.doEnd();
                out.write(") throws ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_java_import_3_273 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_3_273); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_java_import_3_273.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_java_import_3_273.setTagInfo(_td_java_import_3_273);
                _jettag_java_import_3_273.doStart(context, out);
                JET2Writer _jettag_java_import_3_273_saved_out = out;
                while (_jettag_java_import_3_273.okToProcessBody()) {
                    out = out.newNestedContentWriter();
                    out.write("org.springframework.dao.DataAccessException");  //$NON-NLS-1$        
                    _jettag_java_import_3_273.handleBodyContent(out);
                }
                out = _jettag_java_import_3_273_saved_out;
                _jettag_java_import_3_273.doEnd();
                out.write(";");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\tpublic ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_5_10 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_10); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_5_10.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_c_get_5_10.setTagInfo(_td_c_get_5_10);
                _jettag_c_get_5_10.doStart(context, out);
                _jettag_c_get_5_10.doEnd();
                out.write(" find");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_5_65 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_65); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_5_65.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_c_get_5_65.setTagInfo(_td_c_get_5_65);
                _jettag_c_get_5_65.doStart(context, out);
                _jettag_c_get_5_65.doEnd();
                out.write("By");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_5_117 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_117); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_5_117.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_c_get_5_117.setTagInfo(_td_c_get_5_117);
                _jettag_c_get_5_117.doStart(context, out);
                _jettag_c_get_5_117.doEnd();
                out.write("(");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_5_170 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_170); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_5_170.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_c_get_5_170.setTagInfo(_td_c_get_5_170);
                _jettag_c_get_5_170.doStart(context, out);
                _jettag_c_get_5_170.doEnd();
                out.write(" ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_5_212 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_212); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_5_212.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_c_get_5_212.setTagInfo(_td_c_get_5_212);
                _jettag_c_get_5_212.doStart(context, out);
                _jettag_c_get_5_212.doEnd();
                out.write(", int startResult, int maxRows) throws ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_java_import_5_303 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_5_303); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_java_import_5_303.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_java_import_5_303.setTagInfo(_td_java_import_5_303);
                _jettag_java_import_5_303.doStart(context, out);
                JET2Writer _jettag_java_import_5_303_saved_out = out;
                while (_jettag_java_import_5_303.okToProcessBody()) {
                    out = out.newNestedContentWriter();
                    out.write("org.springframework.dao.DataAccessException");  //$NON-NLS-1$        
                    _jettag_java_import_5_303.handleBodyContent(out);
                }
                out = _jettag_java_import_5_303_saved_out;
                _jettag_java_import_5_303.doEnd();
                out.write(";");  //$NON-NLS-1$        
                out.write(NL);         
                _jettag_c_iterate_2_2.handleBodyContent(out);
            }
            _jettag_c_iterate_2_2.doEnd();
            _jettag_java_format_1_1.handleBodyContent(out);
        }
        out = _jettag_java_format_1_1_saved_out;
        _jettag_java_format_1_1.doEnd();
        out.write(NL);         
        out.write(NL);         
        out.write(NL);         
    }
}
